package com.foftact.cave;

import java.util.Date;

/**
 * 持仓与跟踪指数模型类
 * 对应数据库表：cave
 */
public class Cave {
    private Long id;         // 主键ID
    private String code;     // 持仓代码
    private String name;     // 持仓名称
    private String refcode;  // 跟踪指数代码
    private String refname;  // 跟踪指数名称
    private Date createTime; // 创建时间
    private Date updateTime; // 更新时间

    // getter和setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRefcode() {
        return refcode;
    }

    public void setRefcode(String refcode) {
        this.refcode = refcode;
    }

    public String getRefname() {
        return refname;
    }

    public void setRefname(String refname) {
        this.refname = refname;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Cave{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", refcode='" + refcode + '\'' +
                ", refname='" + refname + '\'' +
                ", updateTime=" + updateTime +
                "}";
    }
}